package com.falm.picturebackend.entity.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

/**
 * 文件处理记录表
 * @TableName file_processing_records
 */
@TableName(value ="file_processing_records")
public class FileProcessingRecordsDO {
    /**
     * 自增内部主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 关联文件的UUID
     */
    private String fileUuid;

    /**
     * 处理类型
     */
    private String processType;

    /**
     * 处理参数JSON
     */
    private String processParameters;

    /**
     * 处理状态
     */
    private Object processStatus;

    /**
     * 输入文件UUID
     */
    private String inputFileUuid;

    /**
     * 输出文件UUID
     */
    private String outputFileUuid;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 自增内部主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 自增内部主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 关联文件的UUID
     */
    public String getFileUuid() {
        return fileUuid;
    }

    /**
     * 关联文件的UUID
     */
    public void setFileUuid(String fileUuid) {
        this.fileUuid = fileUuid;
    }

    /**
     * 处理类型
     */
    public String getProcessType() {
        return processType;
    }

    /**
     * 处理类型
     */
    public void setProcessType(String processType) {
        this.processType = processType;
    }

    /**
     * 处理参数JSON
     */
    public String getProcessParameters() {
        return processParameters;
    }

    /**
     * 处理参数JSON
     */
    public void setProcessParameters(String processParameters) {
        this.processParameters = processParameters;
    }

    /**
     * 处理状态
     */
    public Object getProcessStatus() {
        return processStatus;
    }

    /**
     * 处理状态
     */
    public void setProcessStatus(Object processStatus) {
        this.processStatus = processStatus;
    }

    /**
     * 输入文件UUID
     */
    public String getInputFileUuid() {
        return inputFileUuid;
    }

    /**
     * 输入文件UUID
     */
    public void setInputFileUuid(String inputFileUuid) {
        this.inputFileUuid = inputFileUuid;
    }

    /**
     * 输出文件UUID
     */
    public String getOutputFileUuid() {
        return outputFileUuid;
    }

    /**
     * 输出文件UUID
     */
    public void setOutputFileUuid(String outputFileUuid) {
        this.outputFileUuid = outputFileUuid;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FileProcessingRecordsDO other = (FileProcessingRecordsDO) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFileUuid() == null ? other.getFileUuid() == null : this.getFileUuid().equals(other.getFileUuid()))
            && (this.getProcessType() == null ? other.getProcessType() == null : this.getProcessType().equals(other.getProcessType()))
            && (this.getProcessParameters() == null ? other.getProcessParameters() == null : this.getProcessParameters().equals(other.getProcessParameters()))
            && (this.getProcessStatus() == null ? other.getProcessStatus() == null : this.getProcessStatus().equals(other.getProcessStatus()))
            && (this.getInputFileUuid() == null ? other.getInputFileUuid() == null : this.getInputFileUuid().equals(other.getInputFileUuid()))
            && (this.getOutputFileUuid() == null ? other.getOutputFileUuid() == null : this.getOutputFileUuid().equals(other.getOutputFileUuid()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFileUuid() == null) ? 0 : getFileUuid().hashCode());
        result = prime * result + ((getProcessType() == null) ? 0 : getProcessType().hashCode());
        result = prime * result + ((getProcessParameters() == null) ? 0 : getProcessParameters().hashCode());
        result = prime * result + ((getProcessStatus() == null) ? 0 : getProcessStatus().hashCode());
        result = prime * result + ((getInputFileUuid() == null) ? 0 : getInputFileUuid().hashCode());
        result = prime * result + ((getOutputFileUuid() == null) ? 0 : getOutputFileUuid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", fileUuid=").append(fileUuid);
        sb.append(", processType=").append(processType);
        sb.append(", processParameters=").append(processParameters);
        sb.append(", processStatus=").append(processStatus);
        sb.append(", inputFileUuid=").append(inputFileUuid);
        sb.append(", outputFileUuid=").append(outputFileUuid);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}